package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.CustomerApportionmentMapper;
import com.isdepci.project.gasEmission.domain.CustomerApportionment;
import com.isdepci.project.gasEmission.service.ICustomerApportionmentService;

/**
 * 客户分摊Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class CustomerApportionmentServiceImpl implements ICustomerApportionmentService
{
    @Autowired
    private CustomerApportionmentMapper customerApportionmentMapper;

    /**
     * 查询客户分摊
     */
    @Override
    public CustomerApportionment selectCustomerApportionmentById(Long id)
    {
        return customerApportionmentMapper.selectCustomerApportionmentById(id);
    }

    /**
     * 查询客户分摊列表
     */
    @Override
    public List<CustomerApportionment> selectCustomerApportionmentList(CustomerApportionment customerApportionment)
    {
        return customerApportionmentMapper.selectCustomerApportionmentList(customerApportionment);
    }

    /**
     * 新增客户分摊
     */
    @Override
    public int insertCustomerApportionment(CustomerApportionment customerApportionment)
    {
        return customerApportionmentMapper.insertCustomerApportionment(customerApportionment);
    }

    /**
     * 修改客户分摊
     */
    @Override
    public int updateCustomerApportionment(CustomerApportionment customerApportionment)
    {
        return customerApportionmentMapper.updateCustomerApportionment(customerApportionment);
    }

    /**
     * 批量删除客户分摊
     */
    @Override
    public int deleteCustomerApportionmentByIds(Long[] ids)
    {
        return customerApportionmentMapper.deleteCustomerApportionmentByIds(ids);
    }

    /**
     * 删除客户分摊信息
     */
    @Override
    public int deleteCustomerApportionmentById(Long id)
    {
        return customerApportionmentMapper.deleteCustomerApportionmentById(id);
    }
}
